/*
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-13 20:48:19
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-06-26 20:30:08
 * 租户信息
 */
import _axios from '../axios';

const login = {
    // 租户分页查询
    tenantList(data) {
       return _axios({
           method: 'post',
           url: 'api/tenant/page_list',
           data
       })
    },
    // 租户详情
    tenantDetail(id) {
        return _axios({
            method: 'get',
            url: `api/tenant/${id}`,
        })
    },
    // 新增租户
    tenantAdd(data) {
        return _axios({
            method: 'post',
            url: `api/tenant`,
            data
        })
    },
    // 编辑租户
    tenantUpdate(data) {
        return _axios({
            method: 'put',
            url: `api/tenant/${data.id}`,
            data
        })
    },
    
};
export default  login;